import java.util.Scanner;

public class Ex4_31{
	public static void main(String[] args){
		Scanner input = new Scanner(System.in);
		System.out.print("Enter the initial deposit amount: ");
		double amount = input.nextDouble();
		System.out.print("Enter annual percentage yield: ");
		double rate = input.nextDouble();
		rate /= 1200;
		System.out.print("Enter maturity period (number of month): ");
		int month = input.nextInt();
		System.out.printf("Month\t\tCD Value\n");
		double value = amount;
		for (int i = 1; i <= month; i++){
			value *= 1 + rate;
			System.out.printf("%d\t\t%.2f\n", i, value);
		}
	}
}